package apps.reading.db;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface WebSourceService {

	 WebSourceBean save(WebSourceBean accountInfo);
	
	 boolean existsTitle(String title);
	 
	 boolean existsFavorite(String resourceId,String userId);
	 
	 Page<WebSourceBean> findBySourceTypePager(String sourceType,Pageable pageable);
	 
	 Page<WebSourceBean> findBySourceTypePager(String sourceType,String type,Pageable pageable);
	 
	 WebSourceBean getById(String id);
	 
	 void addFavorite(FavoriteBean favoriteBean);
	 
	 void cancelFavorite(FavoriteBean favoriteBean);
	 
	 Page<FavoriteBean> findByUserIdPager(String userId,int page,int size);
	 
	 
}
